import 'package:flutter/material.dart';
import 'package:flutter_order_food/components/bottom_nav_bar.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'components/app_bar.dart';
import 'components/body.dart';

// class HomeScreen extends StatelessWidget {
//   const HomeScreen({Key key}) : super(key: key);

//   @override
//   Widget build(BuildContext context) {
//     List<String> list = [
//       "assets/icons/home.svg",
//       "assets/icons/Following.svg",
//       "assets/icons/Glyph.svg",
//       "assets/icons/person.svg"
//     ];
//     return Scaffold(
//       appBar: homeAppBar(context),
//       body: Body(),
//       // bottomNavigationBar: BottomNavBar(),
//       bottomNavigationBar: BottomNavigationBar(
//         currentIndex: 0,
//         selectedItemColor: Colors.redAccent,
//         unselectedItemColor: Colors.blueGrey,
//         onTap: (value) {},
//         items: list
//             .map(
//               (e) => BottomNavigationBarItem(
//                   icon: SvgPicture.asset(e), label: "11"),
//             )
//             .toList(),
//       ),
//     );
//   }
// }
class HomeScreen extends StatefulWidget {
  const HomeScreen({Key key}) : super(key: key);

  @override
  _HomeScreenState createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> {
  List<String> list = [
    "assets/icons/home.svg",
    "assets/icons/Following.svg",
    "assets/icons/Glyph.svg",
    "assets/icons/person.svg"
  ];
  int currentIndex = 0;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: homeAppBar(context),
      body: Body(),
      bottomNavigationBar: BottomNavBar(),
      // bottomNavigationBar: BottomNavigationBar(
      //   currentIndex: 0,
      //   selectedItemColor: Colors.redAccent,
      //   unselectedItemColor: Colors.blueGrey,
      //   showSelectedLabels: false,
      //   onTap: (value) {
      //     setState(() {
      //       currentIndex = value;
      //     });
      //   },
      //   items: list
      //       .map(
      //         (e) => BottomNavigationBarItem(
      //             icon: SvgPicture.asset(e), label: '1'),
      //       )
      //       .toList(),
      // ),
    );
  }
}
